package ${module.package};


import com.cellulam.framework.core.enums.CodeDescriptionFeature;
import com.cellulam.framework.core.utils.EnumHelper;
import lombok.Getter;

/**
 * ${enumComment}
 */
@Getter
public enum ${enumName} implements CodeDescriptionFeature{

<#list enumValues as value>
    /**
     * ${value.description}
     */
    ${value.name}(${value.value}, "${value.description}")<#if (value_has_next)>,<#else>;</#if>
</#list>

    private final int code;
    private final String description;

    ${enumName}(int code, String description){
        this.code = code;
        this.description = description;
    }

    public static ${enumName} valueOf(Integer code){
        return EnumHelper.valueOf(code, ${enumName}.class);
    }
}
